package com.huawei.appgallery.foundation.ui.framework.widget;

import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.huawei.secure.android.common.intent.SafeBroadcastReceiver;
import o.ContentManager;
import o.epv;

class NetworkRemindBar$5 extends SafeBroadcastReceiver {
    final /* synthetic */ NetworkRemindBar ˋ;

    NetworkRemindBar$5(NetworkRemindBar networkRemindBar) {
        this.ˋ = networkRemindBar;
    }

    public void onReceiveMsg(Context context, Intent intent) {
        String action = intent.getAction();
        if ("android.net.conn.CONNECTIVITY_CHANGE".equals(action) && epv.ᐝ(this.ˋ.getContext())) {
            NetworkInfo activeNetworkInfo = ((ConnectivityManager) ContentManager.getInstant().getContext().getSystemService("connectivity")).getActiveNetworkInfo();
            if (this.ˋ.getVisibility() == 0 && activeNetworkInfo != null && activeNetworkInfo.isConnected()) {
                NetworkRemindBar.ॱ(this.ˋ);
            }
        } else if (NetworkRemindBar.ᐝ().equals(action)) {
            this.ˋ.ˋ();
        }
    }
}
